import request from '@/utils/request'

// 查询出库记录列表
export function listCkRecord(query) {
  return request({
    url: '/mes/CkRecord/list',
    method: 'get',
    params: query
  })
}

// 查询出库记录详细
export function getCkRecord(id) {
  return request({
    url: '/mes/CkRecord/' + id,
    method: 'get'
  })
}

// 新增出库记录
export function addCkRecord(data) {
  return request({
    url: '/mes/CkRecord',
    method: 'post',
    data: data
  })
}

// 修改出库记录
export function updateCkRecord(data) {
  return request({
    url: '/mes/CkRecord',
    method: 'put',
    data: data
  })
}

// 删除出库记录
export function delCkRecord(id) {
  return request({
    url: '/mes/CkRecord/' + id,
    method: 'delete'
  })
}

// 导出出库记录
export function exportCkRecord(query) {
  return request({
    url: '/mes/CkRecord/export',
    method: 'get',
    params: query
  })
}